using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter06
{
	/// <summary>
	/// Example03: How Fast Can Spin?
	/// A ball of mass 0.500 kg is attached to the end of 
	/// a cord 1.50 m long. The ball is whirled in a horizontal 
	/// circle as shown in Figure 6.1. If the cord can withstand 
	/// a maximum tension of 50.0 N, what is the maximum speed 
	/// at which the ball can be whirled before the cord breaks? 
	/// Assume at the string remains horizontal during motion.
	/// v_max = 12.2 m/s
	/// </summary>
	public class Example03
	{
		public Example03()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			// f = ma = mv^2/r
			double f = 50.0;
			double r = 1.5;
			double m = 0.5;
			L.Velocity vmax = new L.Velocity();
			vmax.X = Math.Sqrt(f*r/m);
			result += Convert.ToString(vmax.mPERs);
		}
	}
}
